Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: condition to check eligible headers [DHIS2-16191] #16036

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

gnespolino
Copy link
Contributor

@gnespolino gnespolino commented Dec 28, 2023

In a previous implementation on DHIS2-16191 we added a dedicated parsedHeaders collection to the TeiParams object, which represents a parsed version on the headers query parameter.
This was done to support properly all kind of dimensions as headers.
However, some static headers were not added back properly in the final list of headers, for example as in the following query:
/analytics/trackedEntities/query/nEenWmSyUEp?headers=IpHINAT79UW.incidentdate

This PR aims is to fix this error

@maikelarabori maikelarabori added the run-api-analytics-tests Enables analytics e2e tests label Dec 28, 2023
Copy link

codecov bot commented Dec 28, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (9f2710d) 66.38% compared to head (b90a7f0) 66.37%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #16036      +/-   ##
============================================
- Coverage     66.38%   66.37%   -0.01%     
+ Complexity    31526    31521       -5     
============================================
  Files          3507     3507              
  Lines        130575   130574       -1     
  Branches      15235    15234       -1     
============================================
- Hits          86679    86673       -6     
  Misses        36828    36828              
- Partials       7068     7073       +5     
Flag Coverage Δ
integration 50.31% <0.00%> (-0.01%) ⬇️
integration-h2 32.37% <0.00%> (-0.01%) ⬇️
unit 30.34% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...a/org/hisp/dhis/analytics/tei/query/TeiFields.java 46.00% <0.00%> (+0.45%) ⬆️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f2710d...b90a7f0. Read the comment docs.

@gnespolino gnespolino enabled auto-merge (squash) December 28, 2023 09:41
Copy link

sonarcloud bot commented Dec 28, 2023

@gnespolino gnespolino merged commit 19e1ff2 into master Dec 28, 2023
15 checks passed
@gnespolino gnespolino deleted the DHIS2-16191_fix branch December 28, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-api-analytics-tests Enables analytics e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants